import Layout from '@/layout'

const generalRouter = {
  path: '/general',
  component: Layout,
  redirect: '/general/list',
  alwaysShow: true,
  name: 'general',
  meta: {
    title: '基本信息',
    icon: 'example',
    roles: ['admin', 'org', 'school', 'teacher']
  },
  children: [
    {
      path: 'notify',
      component: () => import('@/views/general/notify'),
      name: 'course',
      meta: { title: '通知推送', icon: 'guide' }
    }
    // {
    //   path: 'carousel',
    //   component: () => import('@/views/course/course'),
    //   name: 'course',
    //   meta: { title: '首页设置', icon: 'star', affix: true }
    // }
  ]
}

export default generalRouter
